package thread;

public class Thread1 {
    public static int a=0;
    public static void main(String[] args) {
        for(int i=0;i<2;i++){
            new Thread(new Runnable() {
                public void run() {
                    for(int j=0;j<1000000;j++){
                        a++;
                    }
                    System.out.println(a);
                }
            }).start();
        }
    }
}
